﻿//====================================================================
// Create by Daniel
// Copyright: YunStudio Inc.
// file： YCCustomerLog.cs
// project ：YunCMS
// Build time：2012-09-09
// modify:
// description:
// ===================================================================
using System;
namespace YunCMS.Model
{
	/// <summary>
	///YCCustomerLog Model
	/// </summary>
	[Serializable]
	public class YCCustomerLog
	{
		#region 
		private int _id;
		private string _ipaddress = String.Empty;
		private DateTime? _visittime;
		#endregion
		
		#region 
		///<summary>
		///Constructor
		///</summary>
		public YCCustomerLog()
		{
		}
		///<summary>
		///Constructor
		///</summary>
		public YCCustomerLog
		(
			int id,
			string ipaddress,
			DateTime? visittime
		)
		{
			_id        = id;
			_ipaddress = ipaddress;
			_visittime = visittime;
			
		}
		#endregion
		
		#region 
		
		///<summary>
		///ID
		///</summary>
		public int ID
		{
			get {return _id;}
			set {_id = value;}
		}

		///<summary>
		///IP (v4 or v6)
		///</summary>
		public string IPAddress
		{
			get {return _ipaddress;}
			set {_ipaddress = value;}
		}

		///<summary>
		///Visit time
		///</summary>
		public DateTime? VisitTime
		{
			get {return _visittime;}
			set {_visittime = value;}
		}
	
		#endregion	
	}
}



